<?php 
namespace Controller\test;

require_once __DIR__.'/../../common/Controller.php';
use app\common\Controller;

/**
 * 
 */
class Test extends Controller
{
	
	public function index($value='')
	{

		$goods = $this->rpc_instance('Goods');

        $barcode = 123;

        $data = $goods->getGoodsByBarcode($barcode);

        var_dump($data);

        $this->outMessage(10000,'ok',$data);

        // return $this->outMessage(10000,'success');
	}
}


 ?>